package com.lhf.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (FvsSysRole)表实体类
 *
 * @author liuhf
 * @since 2021-03-29 16:01:55
 */
@SuppressWarnings("serial")
public class FvsSysRole extends Model<FvsSysRole> {
    //主键
    @TableId(type = IdType.AUTO)
    private Long rid;
    //角色名
    @TableField(value = "r_name")
    private String rName;
    //角色
    private String role;
    //角色图标
    @TableField(value = "r_icon")
    private String rIcon;


    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getrIcon() {
        return rIcon;
    }

    public void setrIcon(String rIcon) {
        this.rIcon = rIcon;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.rid;
    }


    @Override
    public String toString() {
        return "FvsSysRole{" +
                "rid=" + rid +
                ", rName='" + rName + '\'' +
                ", role='" + role + '\'' +
                ", rIcon='" + rIcon + '\'' +
                '}';
    }
}
